package com.yunsc.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.product.dto.QueryCommentDTO;
import com.yunsc.product.entity.YunscCommentEntity;
import com.yunsc.product.vo.GoodsCommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品评价记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-05 01:37:50
 */
@Mapper
public interface YunscCommentDao extends BaseMapper<YunscCommentEntity> {

    /**
     * 查询商品评价列表
     * @param page 分页对象
     * @param params 查询条件
     * @param storeId 店铺ID
     * @return 商品评价列表
     */
    Page<GoodsCommentVO> queryCommentPage(
            Page<GoodsCommentVO> page,
            @Param("params") QueryCommentDTO params,
            @Param("storeId") Integer storeId
    );

}
